import { stringify } from 'qs';
import request from '@/utils/request';

/**
 * 
 * @param {新增一个数据} params array
 */
export async function FileAddJson(params) {
  return request('/server/api/admin/v1/upload/FileJson', {
      method: 'POST',
      headers:{
        'Content-type':'text/html; charset=utf-8'
      },
      data: (Object.assign(setParam(),params))
      ,
    });
}

/**
 * 
 * @param {删除某一个数据} params array
 */
export async function FileRemoveJson(params) {
  return request('/server/api/admin/v1/upload/delete', {
    method: 'POST',
    headers:{
      'Content-type':'text/html; charset=utf-8'
    },
    data: (Object.assign(setParam(),params))
    ,
  });
  }